package model

import "time"

type Paycheck struct {
	PayPeriodStartDate time.Time
	PayPeriodEndDate time.Time
	GrossPay float64 
	NetPay float64
	Deductions float64
	fields map[string]string
}

func NewPaycheck(start_date, end_date time.Time) *Paycheck {
	return &Paycheck{start_date, end_date, .0, .0, .0, map[string]string{}}
}

func (p *Paycheck)GetField(name string) string {
	return p.fields[name];
}

func (p *Paycheck)SetField(name,value string) {
	p.fields[name] = value
}